改进生成的ASP的布局。净MVC形式的观点

时间:2021-12-08 03:22:26

Are there examples on how to quickly improve the layout of generated ASP.Net MVC form views? I'd like to improve the look of my ASP.Net MVC forms for an LOB CRUD application, but don't want to spend a lot of time working on CSS layouting.

有如何快速改进生成的ASP布局的例子。净MVC形式的观点?我想改善我的ASP的外观。Net MVC用于LOB CRUD应用程序的表单,但是不想花很多时间在CSS layouting上。

1 个解决方案

#1


1  

Here's an example of something close to what I'm looking for.

这是一个很接近我要找的东西的例子。

<style type="text/css">
form
{
    background-color: #f3f3f3;
    border: solid 1px #a1a1a1;
    padding: 10px;
    width: 300px;
}

.editor-label, .editor-field
{
    display: block;
    width: 120px;
    float: left;
    margin-bottom: 10px;
}

.editor-label
{
    text-align: right;
    padding-right: 20px;
}

br
{
    clear: left;
}
</style>

#1


1  

Here's an example of something close to what I'm looking for.

这是一个很接近我要找的东西的例子。

<style type="text/css">
form
{
    background-color: #f3f3f3;
    border: solid 1px #a1a1a1;
    padding: 10px;
    width: 300px;
}

.editor-label, .editor-field
{
    display: block;
    width: 120px;
    float: left;
    margin-bottom: 10px;
}

.editor-label
{
    text-align: right;
    padding-right: 20px;
}

br
{
    clear: left;
}
</style>