Span set CSS style does not work, there should be a lot of friends have seen it, small series have met today, after the search to sort out the experience is to let span into block-level elements to show that the CSS style will work
Copy Code code as follows:
<span id= ' span_slide_container ' style= ' display:block; Overflow-y: auto; Overflow-x: auto; height:500px; ' >
Here Display:block; Be sure to add, otherwise, span doesn't work
If you want to define span center, you must first show span as a block-level element, that is, to define the Display:block property of span first, and then add margin properties to span margin:0px auto; This will achieve the desired effect. Span is a lot of properties, almost all the properties of the tag can be defined in span, but many properties must be in the span of block-level elements in the role of the dish, span itself just to supplement the role of a tag, is a secondary tag, generally can only recognize the style of the text you deliberately, So if you want to define more of the other style attributes for the span label, you must first give the span a block-level attribute, and add the Display:block attribute so that your style will work later.