Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何将文字与图片置于一排并且可以调整? #9

Open
NBR-hugh opened this issue Oct 23, 2016 · 1 comment
Open

如何将文字与图片置于一排并且可以调整? #9

NBR-hugh opened this issue Oct 23, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@NBR-hugh
Copy link
Owner

采用div,class为row与col-md-_,改变_大小来改变位置

效果

http://codepen.io/NBR-hugh/pen/rroppb

程序

<div class="  row">
<div class=" col-md-1">
    </div>
        <div class="col-md-8 text-left "> 
           <h2>The New Of Front-End Developer </h2>
           <h3>Learning language:HTML,CSS,JavaScript</h3>
           <h3>The Begin Date:2016.10.16</h3>
           <h2>"Follew My Heart And Practice Hard !"</h2>
        </div>
         <div>
<img class=" img-reponsive  border" src="http://ww2.sinaimg.cn/small/8880bb4cjw1f8zopuiy0xj20hs0hsmy8.jpg" alt="头不见了……" >
         </div>          
    </div>
@NBR-hugh
Copy link
Owner Author

使得图片与文字相适应,正好对称,则添加css:

img{
  vertical-align:middle;
  width:100%;
  height:100%;}

@NBR-hugh NBR-hugh added bug and removed bug labels Oct 23, 2016
@NBR-hugh NBR-hugh self-assigned this Oct 23, 2016
@NBR-hugh NBR-hugh added this to the HTML milestone Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant